<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>



<form name="form1" method="post" action="import.php">
  <p>
    <textarea name="testo_import" cols="100" rows="20" wrap="OFF" id="testo_import"><?php
	if (isset($_POST["Submit2"])) {
		//echo "Nomefile=".$_FILES['fileupload']['tmp_name'];
		$righe = file($_FILES['fileupload']['tmp_name']);
		foreach($righe as $riga) {
			echo $riga;
		}
	} else {?>dghf1;1;1;1;ROMA;1;Associazione;1;1;1;1;tretwer;Annuale;1;1;1;1;1;1;1;Carta di Credito;CEM;Vodafone;1
	<?php } ?></textarea>
  </p>
  <p>
    <input type="submit" name="Submit" value="Inserisci Dati">
</p>
</form>

<form action="" method="post" enctype="multipart/form-data" name="form2">
  Carica file CSV: 
  <input type="file" name="fileupload" id="fileupload">
  <input type="submit" name="Submit2" value="Carica File">
</form>
<p><em>Ordine Campi :<br>
Nominativo, Riferimento, Indirizzo, CAP, Comune, Data Registrazione, Categoria, Telefono, Cellulare, E-mail, Note Abbonato, Rivista, Tipologia, Data Lavorazione, Data Scadenza, Da Numero, A Numero, Copie, Importo, Sconto, Modalita' Pagamento, Abbinamento, Commissionaria, Note Abbonamento</em></p>
</body>
</html>
